package com.app.aipass.fragment.my.problem;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import androidx.annotation.Nullable;

import com.app.aipass.BR;
import com.app.aipass.R;
import com.app.aipass.databinding.FragmentProblemBinding;
import com.app.aipass.utils.StatusBarUtil;

import me.goldze.mvvmhabit.base.BaseFragment;
import me.goldze.mvvmhabit.base.BaseViewModel;

/**
 * @author: woking
 * @date: 2021/6/11
 * @description：
 */
public class ProblemFragment extends BaseFragment<FragmentProblemBinding, BaseViewModel> {
    @Override
    public int initContentView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        return R.layout.fragment_problem;
    }

    @Override
    public int initVariableId() {
        return BR.viewModel;
    }

    @Override
    public void initData() {
        super.initData();
        binding.ivTitleBack.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                getActivity().finish();
            }
        });
        binding.problemRl.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Bundle bundle = new Bundle();
                bundle.putString("id","209");
                bundle.putString("title","常见问题");
                startContainerActivity(ProblemDetailFragment.class.getCanonicalName(),bundle);
            }
        });
        binding.xinyongRl.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Bundle bundle = new Bundle();
                bundle.putString("id","210");
                bundle.putString("title","信用规则");
                startContainerActivity(ProblemDetailFragment.class.getCanonicalName(),bundle);
            }
        });
        binding.chufaRl.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Bundle bundle = new Bundle();
                bundle.putString("id","211");
                bundle.putString("title","处罚规则");
                startContainerActivity(ProblemDetailFragment.class.getCanonicalName(),bundle);
            }
        });
        binding.fankuiRl.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Bundle bundle = new Bundle();
                bundle.putString("id","");
                bundle.putString("title","意见反馈");
                startContainerActivity(ProblemDetailFragment.class.getCanonicalName(),bundle);
            }
        });
    }
}